import UpdateTextStylePanel from '@/pages/ProcessDesign/components/UpdateTextStylePanel.tsx'import { Application } from '@/pages/ProcessDesign/core/Application.ts'import { useCanvas } from '@/pages/ProcessDesign/hooks/useCanvas.ts'import '@logicflow/core/dist/style/index.css'import '@logicflow/extension/lib/style/index.css'import '../assets/styles/canvas.scss'import { createPortal } from 'react-dom'const Canvas = (props: { app: Application, isEdit: boolean }) => {    const { contentRef, showUpdateTextStylePanel, activeNodeParams } = useCanvas(props)    return (        <div className="canvas__container base-container">            <div className="canvas__content base-container" ref={ contentRef }></div>            {                showUpdateTextStylePanel                    ? createPortal(<UpdateTextStylePanel { ...activeNodeParams }/>, document.body)                    : null            }        </div>    )}export default Canvas